numpy datetime and timedelta
Datetimes and Timedeltas — NumPy
Tips
How can I make a python numpy arange of datetime - Stack Overflow
find closest time from array
code:python
times = np.array( ... )
desired_time = datetime.utcnow() + timedelta(hours=12)
delta_times = times - desired_time
idx_min = np.argmin(np.abs(delta_times))